<?php

namespace think;

define('IF_PUBLIC', true);
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR);
define('APP_PATH', ROOT_PATH . 'application' . DIRECTORY_SEPARATOR);
define('ADDON_PATH', ROOT_PATH . 'addons' . DIRECTORY_SEPARATOR);
define('ROOT_URL', rtrim(dirname($_SERVER["SCRIPT_NAME"]), '\\/') . '/');
define('TEMPLATE_PATH', ROOT_PATH . 'public' . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR);

// 定义入口文件
// 加载基础框架文件
require ROOT_PATH . 'thinkphp' . DIRECTORY_SEPARATOR . 'base.php';

// 执行应用并响应
Container::get('app')->run()->send();
